/*
 * createTime: 2020/2/25 14:07
 * description: 商品相关路由
 */

const routers = [
	{
		meta: {
			title: '商品搜索'
		},
		path: '/goods-search',
		name: 'goodsSearch',
		component: () => import('@/views/goods/goods-search')
	},
	{
		meta: {
			title: '搜索结果'
		},
		path: '/goods-result',
		name: 'goodsResult',
		component: () => import('@/views/goods/goods-result')
	},
	{
		meta: {
			title: '商品详情'
		},
		path: '/goods-detail',
		name: 'goodsDetail',
		component: () => import('@/views/goods/goods-detail')
	},
	{
		meta: {
			title: '自营商品详情'
		},
		path: '/goods-self-detail',
		name: 'goodsSelfDetail',
		component: () => import('@/views/goods/goods-self-detail')
	},
	{
		meta: {
			title: '创建分享'
		},
		path: '/goods-share',
		name: 'goodsShare',
		component: () => import('@/views/goods/goods-share')
	},
	{
		meta: {
			title: '选择商品分类',
			keepAlive: true
		},
		path: '/goods-sort',
		name: 'goodsSort',
		component: () => import('@/views/goods/goods-sort')
	}
];

export default [...routers];
